import request from '@/utils/request'

// 查询内涝点列表
export function listWaterLog(query) {
  return request({
    url: '/iot/waterLog/list',
    method: 'get',
    params: query
  })
}

// 查询内涝点详细
export function getWaterLog(waterLogId) {
  return request({
    url: '/iot/waterLog/' + waterLogId,
    method: 'get'
  })
}

// 新增内涝点
export function addWaterLog(data) {
  return request({
    url: '/iot/waterLog',
    method: 'post',
    data: data
  })
}

// 修改内涝点
export function updateWaterLog(data) {
  return request({
    url: '/iot/waterLog',
    method: 'put',
    data: data
  })
}

// 删除内涝点
export function delWaterLog(waterLogId) {
  return request({
    url: '/iot/waterLog/' + waterLogId,
    method: 'delete'
  })
}

// 导出内涝点
export function exportWaterLog(query) {
  return request({
    url: '/iot/waterLog/export',
    method: 'get',
    params: query
  })
}